package first.demo;

public class TestCuboid {
    public static void main(String[] args) {
        Cuboid C = new Cuboid(10,5,2);
        C.volume();
    }
}
class Cuboid extends Rcctanggle {
    private double height;

    public Cuboid(double length, double width, double height) {
        super(length,width);
        this.height=height;
    }
    public void  volume(){
        System.out.println("长方体的体积:"+(height*fd_length()*fd_width()));

    }
}